﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;

namespace GPS.DataAccessLayer
{
    public interface IGPSGenericRepository<T> where T : class
    {
        IEnumerable<T> SelectAll();
        T SelectById(object id);
        T SelectById(object id1, object id2);
        T SelectById(object id1, object id2, object id3);

        void Insert(T obj);
        void Update(T obj);
        void Delete(object id);
        void Save();
        T GetOne<T>(Expression<Func<T, bool>> predicate) where T : class;
        IQueryable<T> GetTable<T>() where T : class;
         List<T> Filter<T>(Expression<Func<T, bool>> predicate) where T : class;
         List<T> Filter<T>(Expression<Func<T, bool>> predicate, int pageNumber, int pageSize) where T : class;
    }
}